Add test for igo8.
authorrobertl <robertl>
Thu, 19 Jun 2008 16:44:16 +0000 (16:44 +0000)
committerrobertl <robertl>
Thu, 19 Jun 2008 16:44:16 +0000 (16:44 +0000)
testo

diff --git a/testo b/testo
index 77768d349167588c4fb9a653f7113ff64cfe0cf3..d6013a39371e2c961cda024b8a98ac9260253c9d 100755 (executable)
--- a/testo
+++ b/testo
@@ -1340,5 +1340,15 @@ compare ${TMPDIR}/exif-dat.csv ${REFERENCE}/exif-dat.csv
 ${PNAME} -i vidaone -f ${REFERENCE}/track/vidaone.gpb -t -o unicsv -F ${TMPDIR}/vidaone.csv
 compare ${TMPDIR}/vidaone.csv ${REFERENCE}/track/vidaone.csv
 
+# iGo8
+# This format has some jitter in the first 64 bytes of the header.
+# So we read our reference track, spin to GPX.
+# Read that track, spin to igo.
+# read the igo file we just wrote, and spin that to GPX.
+# compare the two GPX files.
+${PNAME} -i igo8 -f reference/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx
+${PNAME} -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk
+${PNAME} -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx
+compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx
 
 exit 0